﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Auth/Auth.Master" AutoEventWireup="true"
    CodeBehind="Hours.aspx.cs" Inherits="CoastalClimbing.Auth.Hours" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function txtHoursKeyUp() {
            __doPostBack('<%= txtHours.ClientID %>', 'txtHoursKeyPress');
        }    
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <span class="thirtyWhite">Hours</span>
    <br />
    <asp:Label ID="lblMessage" runat="server" ForeColor="Red" />
    <asp:ScriptManager ID="scriptmanager" runat="server" />
    <asp:UpdatePanel ID="upnl" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="txtHours" />
        </Triggers>
        <ContentTemplate>
            <div id="latestBlurb">
                <asp:Literal ID="litHours" runat="server" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    <table>
        <tr>
            <td>
                <asp:TextBox ID="txtHours" runat="server" TextMode="MultiLine" MaxLength="4000" Columns="80"
                    Rows="20" onkeyup="txtHoursKeyUp();" OnTextChanged="txtHours_TextChanged"
                    AutoPostBack="true" /><asp:RequiredFieldValidator ID="rfvTxtHours" runat="server"
                        ErrorMessage="*" Text="*" ControlToValidate="txtHours" ForeColor="Red" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
